<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:62:"/www/wwwroot/web/luomei/application/admin/view/mail/index.html";i:1526283764;s:65:"/www/wwwroot/web/luomei/application/admin/view/public/header.html";i:1530818904;s:65:"/www/wwwroot/web/luomei/application/admin/view/public/lefter.html";i:1530820641;s:66:"/www/wwwroot/web/luomei/application/admin/view/public/flooter.html";i:1526283776;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="renderer" content="webkit">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
		<title>后台管理系统</title>
		<link rel="stylesheet" type="text/css" href="__PLUG__/bootstrap/css/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="__PLUG__/font-awesome-4.7.0/css/font-awesome.min.css"/>
	    <link rel="stylesheet" type="text/css" href="__CSS__/style.css"/>
	    
       
        
   

		<!-- Bootstrap -->

		<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
        <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>

	<body>
		<nav class="navbar navbar-default" style="background-color: #373D41;">
			<div class="container-fluid" style="background-color: #373D41;">
				<div class="navbar-header">
					<a style="color: #FFFFFF;" href="<?php echo URL('/admin/login/index'); ?>" type="button" class="navbar-toggle collapsed">
						<i class="fa fa-sign-out"></i>
                    </a>
					<a class="navbar-brand" style="background: #373D41;font-size: 24px;width: 50px;" href=""><i class="fa fa-codepen"></i></a>
				</div>
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li class="border-left nav-li"><a href="<?php echo URL('/admin/index'); ?>" style="font-size: 14px;">管理控制台</a></li>
					</ul>
					<ul class="nav navbar-nav navbar-right">
						<li class="dropdown nav-li">
                        <a href="#" class="dropdown-toggle useredit" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="icon-user"></i>&nbsp;<?php echo $loginuser; ?><span class="caret"></span>&nbsp;</a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo URL('/admin/index/uloginedit'); ?>">编辑资料</a></li>                            
                        </ul>
                       </li>							                    
                            
                            <li class="nav-li"><a href="<?php echo URL('/admin/login/index'); ?>">&nbsp;&nbsp;<span class="glyphicon glyphicon-log-out"></span>&nbsp;退出</a></li>
					</ul>
				</div>
			</div>
		</nav>	
		
 
<div class="nav-left">
	<div class="menu-a">
		<ul class="nav nav-pills nava nav-stacked">
        <li><a id="lefttop"><span style="font-size: 12px;" class="fa fa-reorder"></span></a></li>        
        </ul>
	</div>
	
	<ul class="nav navs nav-action nav-pills nav-stacked meun-b">				
		    <li class="hidden-xs">
			    <a href="#system" class="nav-header collapsed in" aria-expanded="true" data-toggle="collapse">				
			        <i class="fa fa-caret-down icon-w">&nbsp;</i>系统<i class="fa fa-gear m-ico pull-right">&nbsp;</i>
			    </a>
		    </li>
		    <li class="visible-xs">
			    <a href="#system" class="nav-header collapsed in" aria-expanded="true" data-toggle="collapse">				
			        &nbsp;<i class="fa fa-gear">&nbsp;</i>
			    </a>
		    </li>
            <li class="">
	            <ul id="system" class="nav nav-pills nav-stacked meun-c collapse in" aria-expanded="false">		
		        		           
		            <li class="hidden-xs "><a href="/admin/netset/index.html"><i class="glyphicon glyphicon-cog fa-lg icon-x"></i>网站设置</a></li>
		            <li class="visible-xs "><a href="/admin/netset/index.html"><i class="glyphicon glyphicon-cog fa-lg"></i></a></li>
                    		           
		            <li class="hidden-xs "><a href="/admin/mail/index.html"><i class="fa fa-at fa-lg icon-x"></i>邮件设置</a></li>
		            <li class="visible-xs "><a href="/admin/mail/index.html"><i class="fa fa-at fa-lg"></i></a></li>
                    		           
		            <li class="hidden-xs "><a href="/admin/netset/bak.html"><i class="fa fa-database fa-lg icon-x"></i>数据备份</a></li>
		            <li class="visible-xs "><a href="/admin/netset/bak.html"><i class="fa fa-database fa-lg"></i></a></li>
                    		           
		            <li class="hidden-xs "><a href="/admin/score/index.html"><i class="fa fa-scribd fa-lg icon-x"></i>积分设置</a></li>
		            <li class="visible-xs "><a href="/admin/score/index.html"><i class="fa fa-scribd fa-lg"></i></a></li>
                    		           
		            <li class="hidden-xs "><a href="/admin/order/index.html"><i class="fa fa-yen fa-lg icon-x"></i>支付帐单</a></li>
		            <li class="visible-xs "><a href="/admin/order/index.html"><i class="fa fa-yen fa-lg"></i></a></li>
                    		           
		            <li class="hidden-xs "><a href="/admin/pay/index.html"><i class="fa fa-paypal fa-lg icon-x"></i>支付设置</a></li>
		            <li class="visible-xs "><a href="/admin/pay/index.html"><i class="fa fa-paypal fa-lg"></i></a></li>
                                    </ul>
            </li>
        </ul>
</div>


<link rel="stylesheet" type="text/css" href="__PLUG__/bootstrapvalidator/css/bootstrapValidator.min.css" />
<div class="container-fluid box-a">
	<div class="nav-c">
		<span class="glyphicon glyphicon-tag">&nbsp;</span><span>邮件设置</span>
	</div>
	<box class="box-b">
		<div class="divs" class="col-sm-6">
			<div class="page-header page-s">
				<h1>邮件设置<small></small></h1>				
			</div>
			<form id="form" class="form-horizontal" action="" method="post">
				<div class="form-group">
					<label for="inputnetname" class="col-sm-3 col-md-3 col-lg-2 control-label">SMTP服务器</label>
					<div class="col-sm-8 col-md-5 col-lg-3">
						<input type="text" name="host" class="form-control" placeholder="smtp.163.com" value="<?php echo $mail['host']; ?>" />
					</div>
				</div>
				<div class="form-group">
					<label for="inputnetname" class="col-sm-3 col-md-3 col-lg-2 control-label">端口</label>
					<div class="col-sm-8 col-md-5 col-lg-3">
						<input type="text" name="port" class="form-control" placeholder="465或25" value="<?php echo $mail['port']; ?>" />
					</div>
				</div>
				<div class="form-group">
					<label for="inputnetname" class="col-sm-3 col-md-3 col-lg-2 control-label">邮箱用户名</label>
					<div class="col-sm-8 col-md-5 col-lg-3">
						<input type="text" name="username" class="form-control" placeholder="xxx@163.com" value="<?php echo $mail['username']; ?>" />
					</div>
				</div>
				<div class="form-group">
					<label for="inputnetname" class="col-sm-3 col-md-3 col-lg-2 control-label">授权密码</label>
					<div class="col-sm-8 col-md-5 col-lg-3">
						<input type="password" name="password" class="form-control" placeholder="授权密码" value="<?php echo $mail['password']; ?>" />
					</div>
				</div>
				<div class="form-group">
					<label for="inputnetname" class="col-sm-3 col-md-3 col-lg-2 control-label">发件人邮箱</label>
					<div class="col-sm-8 col-md-5 col-lg-3">
						<input type="text" name="replyemali" class="form-control" placeholder="发件人邮箱" value="<?php echo $mail['replyemali']; ?>" />
					</div>
				</div>
				<div class="form-group">
					<label for="inputnetname" class="col-sm-3 col-md-3 col-lg-2 control-label">发件人名称</label>
					<div class="col-sm-8 col-md-5 col-lg-3">
						<input type="text" name="replyuser" class="form-control" placeholder="发件人名称" value="<?php echo $mail['replyuser']; ?>" />
					</div>
				</div>
								
				<div class="form-group">
					<div class="col-sm-offset-3 col-md-offset-3 col-lg-offset-2 col-sm-8 col-md-5 col-lg-3">
						<button id="sub" type="submit" style="width: 80px;height: 40px;" class="btn btn-primary">保&nbsp;存</button>
					</div>
				</div>
				
			</form>

		</div>
	</box>
</div>
	</body>
	<script src="__PLUG__/jquery/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PLUG__/bootstrap/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PLUG__/layer/layer.js" type="text/javascript" charset="utf-8"></script>
</html>		


<script type="text/javascript">
$(function(){
	$('#sub').click(function(){	
	    var str_data = $("#form").serialize();        
        $.ajax({   	
		    type: "POST",
		    url: "",
		    data: str_data,
		    success: function(msg) {			
			    layer.msg(msg);
		    }
	    });
	    return false;	
   });	
});
</script>